package distributed.entity;

/**
 * Entity for data about an edge in an event
 * @author Marcus Menghini
 *
 */
public class Edge {
	/** The line this edge comes from */
	int sourceLine;
	
	/** The y-axis position of this edge*/
	int height;
	
	/**
	 * @param line int the number of the line
	 * @param height sets the Y coordinate of the line.
	 */
	public Edge(int line, int height) {
		this.sourceLine = line;
		this.height = height;
	}
	
	/**
	 * @return sourceLine integer, returns the number of the line
	 */
	public int getIndex() {
		return sourceLine;
	}
	
	/**
	 * @param height integer, returns the Y coordinate of the line.
	 */
	public int getHeight() {
		return height;
	}

}
